from pom.basedriver import BaseDriver
class LoginPage(BaseDriver):

    def login_by_token(self,token):
        """
        通过token进行用户登录
        :param token:
        :return:
        """
        self.driver.find_element_by_id("org.cnodejs.android.md:id/edt_access_token").send_keys(token)
        self.driver.find_element_by_id('org.cnodejs.android.md:id/btn_login').click()